package com.bbz.core.designpatterns.work7;
/**
 * 图像实现类
 * @author binbin.a.zhang
 *
 */
public class RealImage implements Image {
	private String fileName;

	public RealImage(String fileName) {
		this.fileName = fileName;
		loadFromDisk(fileName);
	}
	public RealImage() {
		this.fileName="fff";
	}

	@Override
	public void display() {
		System.out.println("Displaying " + fileName);
	}

	private void loadFromDisk(String fileName) {
		System.out.println("loadFromDisk " + fileName);
	}
}
